package com.jwt.demo.service;

import com.jwt.demo.db.bean.UserLogin;
import com.jwt.demo.model.UserLoginModel;
import com.jwt.demo.util.JsonResult;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;
import java.beans.Transient;
import java.util.List;

public interface UserLoginService {

    /**
     * 用户注册信息
     * @author chenlirun
     * @date 2021/7/14 10:42
     */
    @Transient
    JsonResult<?> insert(UserLoginModel userLoginModel);

    JsonResult<String> login(UserLogin userLogin, HttpServletRequest request);

    @Transactional
    JsonResult<List<UserLoginModel>> selectPersonal(HttpServletRequest request);
}
